﻿
@{
    ViewData["Title"] = "Index";
}

@using Microsoft.Extensions.FileProviders
@model IDirectoryContents

<h2>文件夹内容</h2>


<ul>
    @foreach (IFileInfo item in Model)
    {
        if (item.IsDirectory)
        {
            <li><strong>@item.Name</strong> - Directory</li>
        }
        else
        {
            <li><strong>@item.Name</strong> - @item.PhysicalPath</li>
        }
    }

</ul>